package com.starhub.api.docarchive.result;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.starhub.api.docarchive.vo.DocArchiveBaseVO;

import lombok.Data;

/**   
 * 系统知识库列表返回结果
 * @version: V1.0
 * @author: liuhf
 * @time 2025-05-18
 */
@Data
public class DocArchiveListResult {
    private Page<DocArchiveBaseVO> page;
    private long total;

    public static DocArchiveListResult success(Page<DocArchiveBaseVO> page, long total) {
        DocArchiveListResult result = new DocArchiveListResult();
        result.setPage(page);
        result.setTotal(total);
        return result;
    }
} 